package com.example.lifecycle.LifeCycleService;

import android.content.Context;
import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 *
 */
public class MyLifeCycleObserver implements LifecycleObserver {



    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    public void showOnResume(){
        Log.d("guaimiao" , "showOnResume");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    public void showOnDestroy(){
        Log.d("guaimiao" , "showOnDestroy");
    }

}
